const db = require('./00-数据库链接')

const updateStr = 'update human set age = ? where id = ?'

const updateObj = {
    age: 15,
    id: 1
}
db.query(updateStr, [updateObj.age, updateObj.id], (err, results) => {
    console.log('results', results);
})